
	<div class="modal-header">
		<h3>操作成功！</h3>
	</div>
	<div class="row-fluid">
		<div class="span12">
			<div class="alert alert-block alert-success" id="scuccess_msg"><?= $this->res?></div>
		</div>
	</div>
    <div class="modal-footer">
        <span class="pull-left"><em id="second">3</em> 秒后转到...</span>
    	<a href="<?= $this->url?>" class="btn btn-success">立即跳转</a>
    </div>
    
    
<script>

$('#dialog').on('show', function(){
	
	setTimeout(function(){
		//$('#dialog').modal('hide');
		window.open("<?= $this->url?>", "_self");
	}, 3000);
	setInterval(function(){
		var s = $('#second').text();
		s--;
		$('#second').text(s);
	}, 1000);
});


$('#dialog').modal('show');
</script>